package com.michaelbulava.TFS.ui.dialogs.conflicts;

import com.intellij.openapi.project.Project;
import com.michaelbulava.TFS.Messages;
import com.michaelbulava.TFS.ui.dialogs.BaseDialog;
import com.michaelbulava.TFS.vcs.internal.conflicts.ResolveConflictHelper;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;
import java.awt.*;

/**
 * Created by MichaelA on 8/17/2015.
 */
public class ResolveConflictsDialog extends BaseDialog {
    //TODO I want this to work more like Visual Studio or Eclipse so I'm going to come back to this later for now.
    public ResolveConflictsDialog(ResolveConflictHelper resolveConflictHelper){
        this(IdeModalityType.PROJECT);
        setOKButtonText(Messages.getString("ResolveConflictsDialog.OkButtonText"));
        init();

    }

    protected ResolveConflictsDialog(IdeModalityType ideModalityType) {
        super(ideModalityType);
    }

    protected ResolveConflictsDialog(@Nullable Project project) {
        super(project);
    }

    protected ResolveConflictsDialog(@Nullable Project project, IdeModalityType ideModalityType) {
        super(project, ideModalityType);
    }

    protected ResolveConflictsDialog(@NotNull Component parent) {
        super(parent);
    }

    @Override
    protected JComponent createControl() {
        return new JLabel("I need to work on the conflicts control still, sorry");
    }

    @Override
    protected String dialogTitle() {
        return Messages.getString("ResolveConflictsDialog.Title");
    }

    @Override
    protected Action[] createActions() {
        Action[] okAction = {
                getOKAction()
        };
        return  okAction;
    }
}
